<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<div style="display: none;" id="logsId">
	${logs}
</div>
<table id="resultDateId">
	<thead>
		<tr>
			<c:forEach items="${names}" var="unit">
				<td>
					<th data-options="field:'${unit}'">
						${unit}
					</th>
				</td>
			</c:forEach>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${list}" var="node">
			<tr>
				<c:if test="${unitonlyone}">
					<td>
						${node}
					</td>
				</c:if>
				<c:if test="${!unitonlyone}">
					<c:forEach items="${node}" var="unit">
						<td>
							${unit}
						</td>
					</c:forEach>
				</c:if>
			</tr>
		</c:forEach>
	</tbody>
</table>
<script type="text/javascript">
	$(function() {
		try {
			$('#resultDateId').datagrid( {
				fit : true
			});
		} catch (e) {
		}
	});
</script>